package com.zys;

import java.util.Arrays;

public class myArrlist <E>{
    Object[] obj = new Object[10];
    int size;
    public boolean add(E e){
        obj[size] = e;
        size++;
        return true;

    }
    public E get(int index){
        return (E)obj[size];
    }

    @Override
    public String toString() {
        return "myArrlist{" +
                "obj=" + Arrays.toString(obj) +
                ", size=" + size +
                '}';
    }
}
